﻿//  Copyright (c) 2011 Ray Liang (http://www.dotnetage.com)
//  Licensed MIT: http://www.opensource.org/licenses/mit-license.php

using System;
using System.Collections.Generic;

namespace DNA.Mvc.Installation
{
    /// <summary>
    /// Defines the Installation ErrorEvent object.
    /// </summary>
    public class InstallerErrorArgs
    {
        /// <summary>
        /// Gets / Sets the Installer object that throw exception.
        /// </summary>
        public InstallerBase Installer { get; set; }
        
        /// <summary>
        /// Get/Sets the exception object.
        /// </summary>
        public Exception Exception { get; set; }
    }

    public class InstallerExecuteArgs
    {
        /// <summary>
        /// Gets / Sets the Installer object that throw exception.
        /// </summary>
        public InstallerBase Installer { get; set; }

        public bool Cancel { get; set; }

        public IDictionary<string, object> Context { get; set; }
    }

    public delegate void InstallerErrorHandler(object sender, InstallerErrorArgs e);
    public delegate void InstallerExecuteHandler(object sender ,InstallerExecuteArgs e); 
}
